package cn.edu.scau.cmi.liangzijian.adapter;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

public class SortUtil {
	
	public List<Integer> sortInt(List<Integer> intList) {
		List<Integer> sortedList = new ArrayList<Integer>(intList);
		
		sortedList.sort(new Comparator<Integer>() {
			@Override
			public int compare(Integer a, Integer b) {
				if(a <= b) {
					return -1;
				} else
					return 1;
			}	
		});
		
		return sortedList;
	}

}
